package com.gztms.blogmgnt.pojo;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (BlogComment)表实体类
 *
 * @author makejava
 * @since 2023-05-02 12:11:22
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "blog_comment")
public class BlogComment extends Model<BlogComment> {

    @TableId(type = IdType.AUTO)
    private Integer id;
    //文章id
    private Integer blogId;
    //根评论id
    private Integer rootId;
    //评论内容
    private String content;
    //删除标志
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDelete;
    //回复者id
    private String toCommentUid;
    //回复评论id
    private Integer toCommentId;
    //用户编号
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;
    //评论时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBlogId() {
        return blogId;
    }

    public void setBlogId(Integer blogId) {
        this.blogId = blogId;
    }

    public Integer getRootId() {
        return rootId;
    }

    public void setRootId(Integer rootId) {
        this.rootId = rootId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public String getToCommentUid() {
        return toCommentUid;
    }

    public void setToCommentUid(String toCommentUid) {
        this.toCommentUid = toCommentUid;
    }

    public Integer getToCommentId() {
        return toCommentId;
    }

    public void setToCommentId(Integer toCommentId) {
        this.toCommentId = toCommentId;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }



    }

